package Demo5;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Random;

public class Main {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        CreateFoldersAndFiles createFoldersAndFiles = new CreateFoldersAndFiles();
        GenerateRandomLetters generateRandomLetters = new GenerateRandomLetters();
        CountLowerCaseA countLowerCaseA = new CountLowerCaseA();

        createFoldersAndFiles.start();
        try {
            createFoldersAndFiles.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("===============");
        generateRandomLetters.start();
        try {
            generateRandomLetters.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println("===============");
        countLowerCaseA.start();
        try {
            countLowerCaseA.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("cost time: " + (System.currentTimeMillis() - start) + " ms");
    }
}